package com.yzh.openai.domain.auth.service;

import com.yzh.openai.domain.auth.model.entity.AuthStateEntity;
import com.yzh.openai.domain.auth.model.entity.UserEntity;

public interface IAuthService {
    /**
     * 登录验证
     * @param code 验证码
     * @return     TOKEN
     */
    AuthStateEntity doLogin(String code);
    
    boolean checkToken(String token);
    
    String getOpenid(String token);
    UserEntity queryUserInfo(String token);
}
